package xyz.wanwanwan.www.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Fu
 * @since 2020-09-18
 */
@TableName("t_order_course_promotion")
public class OrderCoursePromotion extends Model<OrderCoursePromotion> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("course_promotion_id")
    private Long coursePromotionId;
    @TableField("pay_price")
    private Float payPrice;
    @TableField("total_number")
    private Integer totalNumber;
    private String sn;
    @TableField("pay_apply_time")
    private Date payApplyTime;
    @TableField("pay_last_time")
    private Date payLastTime;
    @TableField("user_id")
    private Long userId;
    private Integer state;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCoursePromotionId() {
        return coursePromotionId;
    }

    public void setCoursePromotionId(Long coursePromotionId) {
        this.coursePromotionId = coursePromotionId;
    }

    public Float getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(Float payPrice) {
        this.payPrice = payPrice;
    }

    public Integer getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(Integer totalNumber) {
        this.totalNumber = totalNumber;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Date getPayApplyTime() {
        return payApplyTime;
    }

    public void setPayApplyTime(Date payApplyTime) {
        this.payApplyTime = payApplyTime;
    }

    public Date getPayLastTime() {
        return payLastTime;
    }

    public void setPayLastTime(Date payLastTime) {
        this.payLastTime = payLastTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderCoursePromotion{" +
        ", id=" + id +
        ", coursePromotionId=" + coursePromotionId +
        ", payPrice=" + payPrice +
        ", totalNumber=" + totalNumber +
        ", sn=" + sn +
        ", payApplyTime=" + payApplyTime +
        ", payLastTime=" + payLastTime +
        ", userId=" + userId +
        ", state=" + state +
        "}";
    }
}
